package com.scorpio.goods.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.scorpio.basic.vo.OssDatumVo;
import com.scorpio.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * 商品对象 sc_goods
 *
 * @author scorpio
 * @date 2021-10-29
 */
@TableName("sc_goods")
public class GoodsEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    //相关类目ID
    private Long categoryId;

    @TableField(exist = false)
    private String categoryName;

    //商品名字
    private String goodsName;

    //商品编号
    private String number;

    //已售总数
    private Integer soldoutTotal;
    //最低价
    private Float minPrice;
    //最高价
    private Float maxPrice;

    //状态;0=已上架,1=未上架
    private String status;

    //优先级
    private Integer sort;

    //是否置顶
    private String isTop;

    //是否首页推荐
    private String isRecomm;

    //商品封面张图
    private String image;

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getSoldoutTotal() {
        return soldoutTotal;
    }

    public void setSoldoutTotal(Integer soldoutTotal) {
        this.soldoutTotal = soldoutTotal;
    }

    public Float getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Float minPrice) {
        this.minPrice = minPrice;
    }

    public Float getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Float maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getIsTop() {
        return isTop;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }

    public String getIsRecomm() {
        return isRecomm;
    }

    public void setIsRecomm(String isRecomm) {
        this.isRecomm = isRecomm;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

}
